#!/usr/bin/python3
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-

import os
import logging


class PdcConst:

    programName = "peripheral-data-collector"

    etcDir = "/etc/peripheral-data-collector"
    mainCfgFile = os.path.join(etcDir, "main.conf")

    libDir = "/usr/lib64/peripheral-data-collector"
    pluginsDir = os.path.join(libDir, "plugins")

    runDir = "/run/peripheral-data-collector"
    pidFile = os.path.join(runDir, "peripheral-data-collector.pid")

    cacheDir = "/var/cache/peripheral-data-collector"

    logDir = "/var/log/peripheral-data-collector"

    rotateLogFileSize = 10 * 1024 * 1024
    rotateLogFileCount = 2


class PdcParam:

    def __init__(self):
        self.logLevel = logging.INFO

        self.machine = None
        self.pluginManager = None
        self.mainloop = None
